import request from '@/utils/request'

// 查询大乐透_内置列表
export function listGamble(query) {
  return request({
    url: '/gamble/lottonz/list',
    method: 'get',
    params: query
  })
}

// 查询大乐透_内置详细
export function getGamble(lottoNzId) {
  return request({
    url: '/gamble/lottonz/' + lottoNzId,
    method: 'get'
  })
}

// 新增大乐透_内置
export function addGamble(data) {
  return request({
    url: '/gamble/lottonz',
    method: 'post',
    data: data
  })
}

// 修改大乐透_内置
export function updateGamble(data) {
  return request({
    url: '/gamble/lottonz',
    method: 'put',
    data: data
  })
}

// 删除大乐透_内置
export function delGamble(lottoNzId) {
  return request({
    url: '/gamble/lottonz/' + lottoNzId,
    method: 'delete'
  })
}
